<?php

namespace app\common\validate;

use app\common\validate\Base;

/**
 *广告validate
 */
class Ads extends Base
{
    protected $rule = [
        'belong_adsp_id' => 'require|number',
        'ads_name' => 'require',
        'ads_link' => 'url',
        'sort' => 'require|number|between:1,99'


    ];

    protected $message = [
        'belong_adsp_id' => '请选择广告位',
        'ads_name' => '填写广告名称',
        'ads_link' => '请检查链接地址',
        'sort' => '排序应为1-99间的正整数'
    ];


}